//{ "allowConditionalTypes": "always" }
type Foo<T> = T extends number ? number : null;

type MyType<T> = T extends number ? number : null;